Skip to content

docs: document org setup for private cross-repo use - #4

Merged
SafeEval merged 1 commit into
mainfrom
agent/org-usage-docs
Jul 30, 2026
Merged

docs: document org setup for private cross-repo use#4
SafeEval merged 1 commit into
mainfrom
agent/org-usage-docs

Conversation

@SafeEval

Copy link
Copy Markdown
Member

The action works from another DivergentCodes repo, but only after two settings that aren't discoverable from the code — and getting either wrong produces an error that doesn't say what's missing.

What's documented

1. Allow org-wide access to this action. Private actions aren't callable across repositories by default. Settings → Actions → General → Access → Accessible from repositories in the DivergentCodes organization. Without it, consuming workflows fail before the action even starts.

2. Supply a token that can read DivergentCodes/commitlint. The default github.token is scoped to the repo running the workflow, so it can't read a different private repo. A fine-grained PAT with Contents: read on that one repo, stored as an org secret COMMITLINT_READ_TOKEN.

Plus a copy-pasteable consuming workflow and a troubleshooting list mapping each symptom to the setting that causes it — terminal prompts disabled → token; fails before any step → org access; could not read Username with a token set → secret not visible to the consuming repo.

Neither repo needs to be public. If commitlint later goes public, drop the github-token line and delete the secret; nothing else changes.

Also

Refreshed version references that named older tags than what's published (v1.1.0/v1.0.0v1.1.2).

Verification

  • Both README workflow examples extracted and run through actionlint — not just eyeballed
  • action.yml and the workflow parse; actionlint clean
  • Input table matches action.yml exactly

Checked, and not a problem

I suspected version: latest would break for a private module, since @latest normally resolves via the public proxy. Tested it: it works, because GOPRIVATE makes Go resolve directly from git. No change needed — noting it so the next person doesn't "fix" it either.

🤖 Generated with Claude Code

https://claude.ai/code/session_01VSrrciEDBTuFNMtKocScML

Using this action from another DivergentCodes repository needs two settings
that are not discoverable from the code, and getting either wrong produces
an error that does not say what is missing: the action repo must allow
organization-wide access, and a token that can read DivergentCodes/commitlint
must be supplied, because the default github.token is scoped to the calling
repository and cannot read a different private repo.

Add a section covering both, with a copy-pasteable workflow and a
troubleshooting list mapping each symptom to the setting that causes it.
Both README workflow examples were extracted and checked with actionlint.

Refresh version references that named tags older than what is published.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VSrrciEDBTuFNMtKocScML
@SafeEval
SafeEval marked this pull request as ready for review July 30, 2026 19:43
@SafeEval
SafeEval merged commit 10a7cd4 into main Jul 30, 2026
2 checks passed
@SafeEval
SafeEval deleted the agent/org-usage-docs branch July 30, 2026 19:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant